package com.fun.sunny.web;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuzh
 */
@Api(tags = "登录成功后测试")
@RestController
public class TestApi {


    @ApiOperation("测试get接口")
    @GetMapping("/t1")
    public JSONObject test1(@RequestHeader(value="Authorization") String authorization){
        JSONObject jo= new JSONObject();
        jo.put("wasd",123);

        return jo;
    }
}
